import request from "@/utils/request";

// 查询关联关系单据列表
export function queryRelationList(queryParams) {
  return request({
    url: "/btrh/relation/list",
    method: "get",
    params: queryParams
  });
}

// 查询追溯码详情
export function getRelationCode(queryParams) {
  return request({
    url: "/btrh/relation/code",
    method: "get",
    params: queryParams
  });
}

// 导出关联关系xml文件
export function getRelationXml(id) {
  return request({
    url: "/btrh/relation/export/" + id,
    method: "get"
  });
}

//删除（重做）关联关系单据
export function deleteRelation(id) {
  return request({
    url: "/btrh/relation/" + id,
    method: "delete"
  });
}
